<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head th:replace="_fragments :: head(~{::title})">
    <meta charset="UTF-8">
    <!-- 移动端更好的适应 -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="../static/dist/semantic/semantic.min.css">
    <link rel="stylesheet" href="../static/css/my.css">
    <title>首页</title>
</head>
<body>
<!-- 导航开始 -->
<nav th:replace="_fragments :: menu(1)" class="ui inverted attached segment m-padded-mini m-shadow-small">
    <div class="ui container">
        <div class="ui inverted secondary stackable menu">
            <h2 class="ui teal header item">Blog</h2>
            <a href="#" class="m-item item m-mobile-hide"><i class="home icon"></i>首页</a>
            <a href="#" class="m-item item m-mobile-hide"><i class="idea icon"></i>分类</a>
            <a href="#" class="m-item item m-mobile-hide"><i class="tags icon"></i>标签</a>
            <a href="#" class="m-item item m-mobile-hide"><i class="clone icon"></i>归档</a>
            <a href="#" class="m-item item m-mobile-hide"><i class="info icon"></i>关于我</a>
            <div class="right m-item item m-mobile-hide">
                <div class="ui action input">
                    <input type="text" placeholder="输入关键字">
                    <button class="ui button">搜索</button>
                </div>
            </div>
        </div>
    </div>

    <a href="#" class="ui m-menu m-toggle black icon button m-right-top m-mobile-show">
        <i class="sidebar icon"></i>
    </a>
</nav>
<!-- 导航结束 -->


<!-- 中间内容开始 -->
<div class="m-container m-padded-large">
    <div class="ui container">
        <div class="ui stackable grid">

            <!-- 中间内容左边开始 -->
            <div class="eleven wide column">

                <!-- 中间内容上面的导航开始 -->
                <div class="ui top attached segment">
                    <div class="ui middle aligned two column grid">
                        <div class="column">
                            <h3 class="ui teal header">博客</h3>
                        </div>
                        <div class="right aligned column">
                            共 <h2 class="ui orange header m-inline-block m-text-thin" th:text="${postList.total}"> 14 </h2> 篇
                        </div>
                    </div>
                </div>
                <!-- 中间内容上面的导航结束 -->

                <!-- 中间内容中间的具体的博客信息开始 -->
                <div class="ui attached teal segment">
                    <div class="ui padded vertical segment m-padded-big" th:each="post : ${postList.list}">
                        <div class="ui middle aligned mobile reversed stackable grid">
                            <div class="eleven wide column">
                                <h3 class="ui header"><a href="#" class="m-black" th:text="${post.title}" th:href="@{/blog/detail/{id}(id=${post.id})}">JVM内存模型</a></h3>
                                <p class="m-text" th:text="|${post.summary}...|">&nbsp;&nbsp;&nbsp;最近学习了一下JVM的内存模型，本来想自己写一篇学习心得，总是觉得自己表达不清，然后就从学习资料里复制一段，写到最后发现，基本都是复制的写到最后发现，基本都是复制的</p>
                                <div class="ui stackable grid">
                                    <div class="eleven wide column">
                                        <div class="ui mini horizontal link list">
                                            <div class="item">
                                                <img src="../static/images/me.jpg" th:src="@{${post.picture}}" alt="头像" class="ui avatar image"/>
                                                <div class="content"><a href="#" class="header" th:text="${post.nickname}">吴慧华</a></div>
                                            </div>
                                            <div class="item">
                                                <i class="calendar icon"></i><span th:text="${#dates.format(post.updateTime,'yyyy-MM-dd')}">2020-01-01</span>
                                            </div>
                                            <div class="item">
                                                <i class="eye icon"></i><span th:text="${post.readCount}">1000</span>
                                            </div>
                                        </div>
                                    </div>
                                    <!--多分类，故不显示-->
                                    <!--<div class="right aligned five wide column">-->
                                    <!--    <a href="#" target="_blank" class="ui teal basic m-padded-all-mini m-text-thin label" >学习笔记</a>-->
                                    <!--</div>-->
                                </div>
                            </div>
                            <div class="five wide column">
                                <a href="#" target="_blank">
                                    <img src="../static/images/test1.jpg" th:src="@{${post.firstPicture}}" alt="首图" class="ui rounded m-image-size-square image">
                                </a>
                            </div>
                        </div>
                    </div>
                    <!--/*-->
                    <div class="ui padded vertical segment m-padded-big">
                        <div class="ui middle aligned mobile reversed stackable grid">
                        <div class="eleven wide column">
                            <h3 class="ui header"><a href="#" class="m-black">JVM内存模型</a></h3>
                            <p class="m-text">&nbsp;&nbsp;&nbsp;最近学习了一下JVM的内存模型，本来想自己写一篇学习心得，总是觉得自己表达不清，然后就从学习资料里复制一段，写到最后发现，基本都是复制的写到最后发现，基本都是复制的</p>
                            <div class="ui stackable grid">
                                <div class="eleven wide column">
                                    <div class="ui mini horizontal link list">
                                        <div class="item">
                                            <img src="../static/images/me.jpg" alt="头像" class="ui avatar image"/>
                                            <div class="content"><a href="#" class="header">吴慧华</a></div>
                                        </div>
                                        <div class="item">
                                            <i class="calendar icon"></i><span>2020-01-01</span>
                                        </div>
                                        <div class="item">
                                            <i class="eye icon"></i><span>1000</span>
                                        </div>
                                    </div>
                                </div>
                                <!--多分类，故不显示-->
                                <!--<div class="right aligned five wide column">-->
                                <!--    <a href="#" target="_blank" class="ui teal basic m-padded-all-mini m-text-thin label" >学习笔记</a>-->
                                <!--</div>-->
                            </div>
                        </div>
                        <div class="five wide column">
                            <a href="#" target="_blank">
                                <img src="../static/images/test1.jpg" alt="首图" class="ui rounded m-image-size-square image">
                            </a>
                        </div>
                    </div>
                    </div>
                    <div class="ui padded vertical segment m-padded-big">
                        <div class="ui middle aligned mobile reversed stackable grid">
                            <div class="eleven wide column">
                                <h3 class="ui header"><a href="#" class="m-black">JVM内存模型</a></h3>
                                <p class="m-text">&nbsp;&nbsp;&nbsp;最近学习了一下JVM的内存模型，本来想自己写一篇学习心得，总是觉得自己表达不清，然后就从学习资料里复制一段，写到最后发现，基本都是复制的写到最后发现，基本都是复制的</p>
                                <div class="ui stackable grid">
                                    <div class="eleven wide column">
                                        <div class="ui mini horizontal link list">
                                            <div class="item">
                                                <img src="../static/images/me.jpg" alt="头像" class="ui avatar image"/>
                                                <div class="content"><a href="#" class="header">吴慧华</a></div>
                                            </div>
                                            <div class="item">
                                                <i class="calendar icon"></i><span>2020-01-01</span>
                                            </div>
                                            <div class="item">
                                                <i class="eye icon"></i><span>1000</span>
                                            </div>
                                        </div>
                                    </div>
                                    <!--多分类，故不显示-->
                                    <!--<div class="right aligned five wide column">-->
                                    <!--    <a href="#" target="_blank" class="ui teal basic m-padded-all-mini m-text-thin label" >学习笔记</a>-->
                                    <!--</div>-->
                                </div>
                            </div>
                            <div class="five wide column">
                                <a href="#" target="_blank">
                                    <img src="../static/images/test1.jpg" alt="首图" class="ui rounded m-image-size-square image">
                                </a>
                            </div>
                        </div>
                    </div>
                    <div class="ui padded vertical segment m-padded-big">
                        <div class="ui middle aligned mobile reversed stackable grid">
                            <div class="eleven wide column">
                                <h3 class="ui header"><a href="#" class="m-black">JVM内存模型</a></h3>
                                <p class="m-text">&nbsp;&nbsp;&nbsp;最近学习了一下JVM的内存模型，本来想自己写一篇学习心得，总是觉得自己表达不清，然后就从学习资料里复制一段，写到最后发现，基本都是复制的写到最后发现，基本都是复制的</p>
                                <div class="ui stackable grid">
                                    <div class="eleven wide column">
                                        <div class="ui mini horizontal link list">
                                            <div class="item">
                                                <img src="../static/images/me.jpg" alt="头像" class="ui avatar image"/>
                                                <div class="content"><a href="#" class="header">吴慧华</a></div>
                                            </div>
                                            <div class="item">
                                                <i class="calendar icon"></i><span>2020-01-01</span>
                                            </div>
                                            <div class="item">
                                                <i class="eye icon"></i><span>1000</span>
                                            </div>
                                        </div>
                                    </div>
                                    <!--多分类，故不显示-->
                                    <!--<div class="right aligned five wide column">-->
                                    <!--    <a href="#" target="_blank" class="ui teal basic m-padded-all-mini m-text-thin label" >学习笔记</a>-->
                                    <!--</div>-->
                                </div>
                            </div>
                            <div class="five wide column">
                                <a href="#" target="_blank">
                                    <img src="../static/images/test1.jpg" alt="首图" class="ui rounded m-image-size-square image">
                                </a>
                            </div>
                        </div>
                    </div>
                    <div class="ui padded vertical segment m-padded-big">
                        <div class="ui middle aligned mobile reversed stackable grid">
                            <div class="eleven wide column">
                                <h3 class="ui header"><a href="#" class="m-black">JVM内存模型</a></h3>
                                <p class="m-text">&nbsp;&nbsp;&nbsp;最近学习了一下JVM的内存模型，本来想自己写一篇学习心得，总是觉得自己表达不清，然后就从学习资料里复制一段，写到最后发现，基本都是复制的写到最后发现，基本都是复制的</p>
                                <div class="ui stackable grid">
                                    <div class="eleven wide column">
                                        <div class="ui mini horizontal link list">
                                            <div class="item">
                                                <img src="../static/images/me.jpg" alt="头像" class="ui avatar image"/>
                                                <div class="content"><a href="#" class="header">吴慧华</a></div>
                                            </div>
                                            <div class="item">
                                                <i class="calendar icon"></i><span>2020-01-01</span>
                                            </div>
                                            <div class="item">
                                                <i class="eye icon"></i><span>1000</span>
                                            </div>
                                        </div>
                                    </div>
                                    <!--多分类，故不显示-->
                                    <!--<div class="right aligned five wide column">-->
                                    <!--    <a href="#" target="_blank" class="ui teal basic m-padded-all-mini m-text-thin label" >学习笔记</a>-->
                                    <!--</div>-->
                                </div>
                            </div>
                            <div class="five wide column">
                                <a href="#" target="_blank">
                                    <img src="../static/images/test1.jpg" alt="首图" class="ui rounded m-image-size-square image">
                                </a>
                            </div>
                        </div>
                    </div>
                    <!--*/-->
                </div>
                <!-- 中间内容中间的具体的博客信息结束 -->

                <!-- 中间内容底部的翻页效果开始 -->
                <div class="ui bottom attached segment">
                    <div class="ui middle aligned two column grid">
                        <div class="column">
                            <a href="#" class="ui mini teal basic button" th:href="@{/(pageNum=(${postList.pageNum}-1<1?1:${postList.pageNum}-1))}">上一页</a>
                        </div>
                        <div class="right aligned column">
                            <a href="#" class="ui mini teal basic button" th:href="@{/(pageNum=(${postList.pageNum}+1>${postList.pages}?${postList.pages}:${postList.pageNum}+1))}">下一页</a>
                        </div>
                    </div>
                </div>
                <!-- 中间内容底部的翻页效果结束 --->

            </div>
            <!-- 中间内容左边结束 -->

            <!-- 中间内容右边开始 -->
            <div class="five wide column">
                <!-- 中间内容右边分类模块开始 -->
                <div class="ui segments">
                    <div class="ui secondary segment">
                        <div class="ui two column grid">
                            <div class="column">
                                <i class="idea icon"></i>分类
                            </div>
                            <div class="right aligned column">
                                <a href="#" target="_blank" th:href="@{/type/list}">MORE <i class="angle double right icon"></i></a>
                            </div>
                        </div>
                    </div>

                    <div class="ui teal segment">
                        <div class="ui fluid vertical menu">
                            <a href="#" class="item" th:each="clazz:${clazzList}" th:href="@{/type/list(clazzId=${clazz.id})}">
                                <span th:text="${clazz.clazzName}">学习日志</span>
                                <div class="ui teal basic left pointing label" th:text="${clazz.postCount}">13</div>
                            </a>
                            <!--/*-->
                            <a href="#" class="item">
                                <span>学习日志</span>
                                <div class="ui teal basic left pointing label">13</div>
                            </a>
                            <a href="#" class="item">
                                <span>学习日志</span>
                                <div class="ui teal basic left pointing label">13</div>
                            </a>
                            <a href="#" class="item">
                                <span>学习日志</span>
                                <div class="ui teal basic left pointing label">13</div>
                            </a>
                            <a href="#" class="item">
                                <span>学习日志</span>
                                <div class="ui teal basic left pointing label">13</div>
                            </a>
                            <a href="#" class="item">
                                <span>学习日志</span>
                                <div class="ui teal basic left pointing label">13</div>
                            </a>
                            <!--*/-->
                        </div>
                    </div>
                </div>
                <!-- 中间内容右边分类模块结束 -->

                <!-- 中间内容右边标签模块开始 -->
                <div class="ui segment m-margin-top-large">
                    <div class="ui secondary segment">
                        <div class="ui two column grid">
                            <div class="column">
                                <i class="tags icon"></i>标签
                            </div>
                            <div class="right aligned column">
                                <a href="#" target="_blank" th:href="@{/tag/list}">MORE <i class="angle double right icon"></i></a>
                            </div>
                        </div>
                    </div>
                    <div class="ui teal segment">
                        <a href="#" target="_blank" class="ui teal basic left pointing label m-margin-small" th:each="label:${labelList}" th:href="@{/tag/list(labelId=${label.id})}">
                            <span th:text="${label.labelName}">知识点</span>
                            <div class="detail" th:text="${label.postCount}">23</div>
                        </a>
                        <!--/*-->
                        <a href="#" target="_blank" class="ui teal basic left pointing label m-margin-small">
                            <span>知识点</span>
                            <div class="detail">23</div>
                        </a>
                        <a href="#" target="_blank" class="ui teal basic left pointing label m-margin-small">
                            <span>知识点</span>
                            <div class="detail">23</div>
                        </a>
                        <a href="#" target="_blank" class="ui teal basic left pointing label m-margin-small">
                            <span>知识点</span>
                            <div class="detail">23</div>
                        </a>
                        <a href="#" target="_blank" class="ui teal basic left pointing label m-margin-small">
                            <span>知识点</span>
                            <div class="detail">23</div>
                        </a>
                        <a href="#" target="_blank" class="ui teal basic left pointing label m-margin-small">
                            <span>知识点</span>
                            <div class="detail">23</div>
                        </a>
                        <a href="#" target="_blank" class="ui teal basic left pointing label m-margin-small">
                            <span>知识点</span>
                            <div class="detail">23</div>
                        </a>
                        <a href="#" target="_blank" class="ui teal basic left pointing label m-margin-small">
                            <span>知识点</span>
                            <div class="detail">23</div>
                        </a>
                        <!--*/-->
                    </div>
                </div>
                <!-- 中间内容右边标签模块结束 -->

                <!-- 中间内容右边最新推荐模块开始 -->
                <div class="ui segments m-margin-top-large">
                    <div class="ui secondary segment">
                        <div class="ui two column grid">
                            <div class="column">
                                <i class="bookmark icon"></i>最新推荐
                            </div>
                        </div>
                    </div>

                    <div class="ui teal segment">
                        <div class="ui fluid vertical menu">
                            <a href="#" target="_blank" class="item m-text-thin" th:each="newPost:${newPostList}">
                                <span th:text="${newPost.title}">java内存模型</span>
                            </a>
                            <!--/*-->
                            <a href="#" target="_blank" class="item m-text-thin">
                                <span>java内存模型</span>
                            </a>
                            <a href="#" target="_blank" class="item m-text-thin">
                                <span>java内存模型</span>
                            </a>
                            <a href="#" target="_blank" class="item m-text-thin">
                                <span>java内存模型</span>
                            </a>
                            <a href="#" target="_blank" class="item m-text-thin">
                                <span>java内存模型</span>
                            </a>
                            <a href="#" target="_blank" class="item m-text-thin">
                                <span>java内存模型</span>
                            </a>
                            <!--*/-->
                        </div>
                    </div>
                </div>
                <!-- 中间内容右边最新推荐模块结束 -->

                <!-- 中间内容右边二维码模块开始 -->
                <h4 class="ui horizontal divider header">扫码关注我</h4>
                <div class="ui centered card" style="width: 11em">
                    <img src="../static/images/wechat.png" th:src="@{/images/wechat.png}" alt="" class="rounded image"
                         style="width: 11em"/>
                </div>
                <!-- 中间内容右边二维码模块结束 -->
            </div>
            <!-- 中间内容右边结束 -->

        </div>
    </div>
</div>
<!-- 中间内容结束 -->

<!-- 底部内容开始 -->
<footer th:replace="_fragments :: footer" class="ui inverted vertical segment m-padded-massive">
    <div class="ui center aligned container">
        <div class="ui inverted divided stackable grid">
            <div class="three wide column">
                <div class="ui inverted link list">
                    <div class="item">
                        <img src="../static/images/wechat.png" class="ui rounded image" alt="" style="width: 110px"/>
                    </div>

                </div>
            </div>
            <div class="three wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced">最新博客</h4>
                <div class="ui inverted link list">
                    <a class="item" href="#">用户故事（UserStory）</a>
                    <a class="item" href="#">用户故事（UserStory）</a>
                    <a class="item" href="#">用户故事（UserStory）</a>
                    <a class="item" href="#">用户故事（UserStory）</a>
                </div>
            </div>
            <div class="three wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced">联系我</h4>
                <div class="ui inverted link list">
                    <a class="item" href="#">Email: 1916339974@qq.com</a>
                    <a class="item" href="#">QQ: 1916339974</a>
                </div>
            </div>
            <div class="seven wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced">介绍</h4>
                <p class="m-text-thin m-text-spaced m-opacity-mini">
                    这是我的个人博客，会分享关于编程、投资有关的任何内容，希望可以给大家带来帮助
                </p>
            </div>

        </div>
        <div class="ui inverted section divider"></div>
        <p class="m-text-thin m-text-spaced m-opacity-tiny">Copyright 2021 - 2022 AlaGeek</p>
    </div>
</footer>
<!-- 底部内容结束 -->

<!--/*/<th:block th:replace="_fragments :: script">/*/-->
<script src="../static/dist/jquery/jquery-3.4.1.min.js" th:src="@{/dist/jquery/jquery-3.4.1.min.js}"></script>
<script src="../static/dist/semantic/semantic.min.js" th:src="@{/dist/semantic/semantic.min.js}"></script>
<!--/*/</th:block>/*/-->
<script>
    $('.m-menu.m-toggle').click(function () {
        $('.m-item').toggleClass('m-mobile-hide');
    });
    $('.ui.dropdown').dropdown({
        on: 'hover'
    });
</script>
</body>
</html>